var stepId = $CertusJsonAjax.getStepInstanceId();
var processId = $CertusJsonAjax.getProInstanceId();
$CertusFormAjax.ajax('findLcBugets',{"processId":processId},function (response) {
    var data = response.data;
    $$scope.proName = data[0].pro_name;
    $$scope.proStage = data[0].buget_phase;
    $$scope.userName = data[0].user_name;
    $$scope.createTime = data[0].create_time;
    $$scope.comments = data[0].comments;
    $$scope.proId = data[0].pro_id;
    $$scope.typeMoneys = data;
});
$CertusFormAjax.ajax('maxBudgets',{'stepId':stepId},function (response) {
    var data = response.data;
    $$scope.opinionMsg = data.opinionMsg;
});
function  show() {
    var proid = $("#prolisd").html();
    $$scope.proId = proid;
    probox($$scope, $CertusFormAjax);
};
//同意
$(".agree").on('click',function () {
    var opinionMsg = $("#opinionMsg").val();
    $CertusFormAjax.ajax('costBmUserSp',{"processId":processId,
        "stepId":stepId,"opinionMsg":opinionMsg},function () {
        layer.msg("审批成功");
        window.history.back();
    });
});
//不同意
$(".unagree").on('click',function () {
    var opinionMsg = $("#opinionMsg").val();
    $CertusFormAjax.ajax('unagree',{"processId":processId,
        "stepId":stepId,"opinionMsg":opinionMsg},function () {
        layer.msg("审批成功");
        window.history.back();
    });
});